package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) // 取消自带的单数据源部署
@ComponentScan(basePackages = { "com.example.demo", "com.example.demo.mapper", "com.example.demo.*" }) // 扫描需要的包,包含一些工具包所在类
@MapperScan(basePackages = { "com.example.demo.mapper.**" })
public class BookApplication {

	public static void main(String[] args) {
		SpringApplication.run(BookApplication.class, args);
		// cs
	}

}
